﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GMS.Interface
{
    class Validator
    {
        public bool IsDecimal(string text)
        {
            decimal tmp = new decimal();
            dynamic Dec = decimal.TryParse(text, out tmp);
            return Dec;
        }

         public bool IsInterger(string text)
        
         {
            Int16 tmp = new Int16();
            dynamic res = Int16.TryParse(text, out tmp);
            return res;
        }
    }
}
